package cn.dzhang.rcp.hyperbola.remoting;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean;

import cn.dzhang.rcp.hyperbola.service.UserService;

@Configuration
public class RemotingConfig {
	@Bean
	public HttpInvokerProxyFactoryBean userService() {
		HttpInvokerProxyFactoryBean proxy = new HttpInvokerProxyFactoryBean();
		proxy.setServiceUrl("http://192.168.7.151:8080/remoting/UserService");
		proxy.setServiceInterface(UserService.class);

		return proxy;
	}

}
